package com.hksj.cockpit.mapper;

import com.hksj.base.query.BaseDeviceQuery;
import com.hksj.base.query.BaseSpecialityQuery;
import com.hksj.base.vo.DeviceStatusVO;
import com.hksj.base.vo.PropertyVO;
import com.hksj.cockpit.vo.AlarmRecordVO;
import com.hksj.cockpit.vo.DeviceOverviewVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @ClassName CockpitMapper
 * @Description TODO
 * @Author @陈章
 * @Date 2024/8/9 10:02
 * @Version 1.0
 */
@Mapper
public interface ComprehensiveCockpitMapper {

    String getFirstDevice(@Param("query") BaseSpecialityQuery query);

    List<PropertyVO> query(String id);

    List<Map<String, Integer>> selectDeviceAlarmCountDistribution(@Param("query") BaseSpecialityQuery query);

    List<AlarmRecordVO> queryAlarmRecord(@Param("query") BaseSpecialityQuery query);

    List<DeviceOverviewVO> queryDeviceOverview(@Param("query")BaseSpecialityQuery query);

    List<String> getDeviceIdList(@Param("query")BaseSpecialityQuery query);

    List<DeviceStatusVO> selectDeviceList(@Param("query") BaseSpecialityQuery query, @Param("deviceIdList") List<String> deviceIdList);

}
